Page({
  data: {
    type: 'A',
    show: false,
    list: [
      {
        message: 'foo',
      },
      {
        message: 'bar'
      }
    ],
    val: "123"
  },
  onLoad(query) {
    console.log(getCurrentPages())
    // console.log(this.pageRouter)
  },
  toTodo() {
    this.pageRouter.navigateTo({
      url: "../../views/todo/index"
    })
    /*wx.navigateTo({
      url: "../../views/todo/index"
    })*/
  },
  submit() {
    console.log(this.data.val)
  },
  handleToggle() {
    this.setData({
      show: !this.data.show
    })
  },
  touchstart() {
    console.log("touchstart")
  },
  touchend() {
    console.log("touchend")
  },
  longpress() {
    console.log("longpress")
  },
  click1() {
    console.log("box")
  },
  click2() {
    console.log("box 22222 =======")
  },
  click3(event) {
    // event.stopPropagation()
    console.log("box 333333333")
  }
})
